/*
 * @Descripttion: GGB
 * @version: 1.0
 * @Author: GGB
 * @Date: 2021-08-17 16:09:36
 * @LastEditors: GGB
 * @LastEditTime: 2021-08-17 16:23:46
 */
import 'package:flutter/material.dart';
import 'package:flutter_data_center/model/door/door_model.dart';
import 'package:flutter_data_center/utills/color_utils.dart';

class DoorDetailItem extends StatelessWidget {
  const DoorDetailItem({Key key, this.person}) : super(key: key);
  final DoorPeopleModel person;
  @override
  Widget build(BuildContext context) => ListTile(
        isThreeLine: false,
        minLeadingWidth: 34,
        leading: Container(
          width: 34,
          height: 34,
          decoration: BoxDecoration(
            color: Color(0xffEDD4F5),
            shape: BoxShape.circle,
          ),
          child: ClipOval(
              child: Image.network(
            person.avatar,
            fit: BoxFit.cover,
          )),
        ),
        title: Text(
          person.name,
          style: TextStyle(
            color: Colors.black,
            fontSize: 14,
          ),
        ),
        subtitle: Text(
          person.time,
          style: TextStyle(
            color: gColor('#696868'),
            fontSize: 12,
          ),
        ),
        trailing: Text(
          "刷卡进入",
          style: TextStyle(
            fontSize: 13,
          ),
        ),
      );
}
